package com.zhaojindong.ioc.component.register.third;

import lombok.extern.log4j.Log4j;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

@Log4j
public class ThirdTest {

    @Test
    public void testMethod() {
        ApplicationContext context = new AnnotationConfigApplicationContext(ThirdConfig.class);

        String[] names = context.getBeanDefinitionNames();

        for (String name : names) {
            log.info("bean name：" + name);
        }
    }

}
